#include <iostream>
#include <math.h>

using namespace std;

void plus1_sqrt(double *a){
	(*a)++;
	*a = sqrt(*a);
}

int main(){
	double a = 8;
	plus1_sqrt(&a);
	cout << a << endl;
}

